﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dotUML.Core.Common.SequenceDiagram
{
    /// <summary>
    /// IMessage is an interface for a UML sequence diagram message element.
    /// </summary>
    public interface IMessage : IDiagramElement
    {
        /// <summary>
        /// Type of message.
        /// </summary>
        EMessageType MessageType
        {
            get;
            set;
        }

        /// <summary>
        /// Source lifeline.
        /// </summary>
        ILifeline Source
        {
            get;
            set;
        }

        /// <summary>
        /// Target lifeline.
        /// </summary>
        ILifeline Target
        {
            get;
            set;
        }

        /// <summary>
        /// Defines if this message is an asynchronous one or not.
        /// </summary>
        bool Async
        {
            get;
            set;
        }

        /// <summary>
        /// Message label.
        /// </summary>
        string Label
        {
            get;
            set;
        }

        /// <summary>
        /// Message's stereotypes.
        /// </summary>
        List<IStereotype> Stereotypes
        {
            get;
            set;
        }

        /// <summary>
        /// The number of the message on the diagram.
        /// </summary>
        string MessageNumber
        {
            get;
            set;
        }
    }
}
